<script>
  import $ from 'dfish-widget'
  import Method from '../Method.vue'

  export default {
    mixins: [Method],
    data() {
      return {
        name: '$.q(sel, [context])',
        remark: 'jQuery方法，返回一个jQuery对象。',
        attrs: [{
          name: 'sel',
          remark: '用来查找的字符串',
          type: 'String / HTMLElement',
        },{
          name: 'context',
          remark: '作为待查找的 DOM 元素集、文档或 jQuery 对象',
          type: 'HTMLElement',
        }],
        examples: [{
          remark: '给页面设置背景色',
          code: `
            $.q(document.body).css('background', 'black');
            `
        }]
      }
    }
  }
</script>
